@-moz-document url-prefix() {
	#formulabar #formulaInput, #formulabar #addressInput{
		border-radius: 0px;
		border:1px solid #bbbbbb !important;
	}
	#toolbar-wrapper{
		border-top: none;
	}
	#toolbar-up{
		top:-1px;
	}
}
@media (max-width: 767px), (max-device-height: 767px) {
	.insertshape-grid {
		box-sizing: content-box;
		position: absolute;
		padding: 2px 0px 2px 0px;
		display: inline-block;
		width: 100%;
		height: 100%;
		overflow-y: scroll;
	}
	#formulabar {
		padding: 0px !important;
		border-top: 1px solid #bbbbbb !important;
	}
	#tb_actionbar_item_fullscreen{display: none;}
	#toolbar-down {
		height: 34px !important;
		border-top: 1px solid #f1f1f1 !important;
	}
	#toolbar-down > .w2ui-scroll-wrapper {
		overflow-x: scroll !important;
		scrollbar-width: none; /*css draft (firefox only)*/
		-ms-scrollbar: none; /*ie*/
	}
	#toolbar-down > .w2ui-scroll-wrapper::-webkit-scrollbar { /*webkit only*/
		display: none;
}
	.w2ui-scroll-right,.w2ui-scroll-left{
		display: none !important;
	}
	#addressInput{
		width: 60px !important;
		border: 1px solid #bbbbbb;
		border-bottom: none;
		border-top: none;
		border-left: none;
		height: 35px !important;
	}
	.w2ui-icon.equal, .w2ui-icon.autosum{width: 38px !important;}
	#formulaInput{
		border: 1px solid #bbbbbb;
		border-bottom: none;
		border-top: none;
		border-right: none;
		height: 35px !important;
	}

	#calc-inputbar-wrapper {
		display: block;
		border: none;
	}

	#calc-inputbar {
		display: block;
		width: 100%;
		position: relative;
		padding:0px;
		margin: 0px;
	}

	#tb_actionbar_item_undo .w2ui-tb-image, #tb_actionbar_item_redo .w2ui-tb-image, #tb_actionbar_item_mobile_wizard .w2ui-tb-image, #tb_actionbar_item_prev  .w2ui-tb-image, #tb_actionbar_item_next  .w2ui-tb-image, #tb_actionbar_item_insertion_mobile_wizard .w2ui-tb-image, #tb_actionbar_item_insertcomment .w2ui-tb-image, #tb_actionbar_item_fullscreen-presentation .w2ui-tb-image{
		min-width: 38px;
	}

	#tb_actionbar_item_userlist table{
		margin: -1px 0px auto 3px !important;
	}
	#toolbar-up .checked{
		border-color: #fff;
	}
	#toolbar-up .checked .w2ui-tb-image{
		-webkit-filter:  drop-shadow(0px 0px 4px #0b87e7);
		filter: drop-shadow(0px 0px 4px #0b87e7);
	}
	#toolbar-down table.w2ui-button .w2ui-tb-image {
		margin: 5px 9px 3px 9px!important;
	}
	.w2ui-toolbar .w2ui-break{
		background-image: none;
		background-color: #dae6f3;
	}
	#setgamma input.spinfield, #linewidth input.spinfield, #nolines input.spinfield{
		width: 140px !important;
	}
	td[id^=tb_spreadsheet-toolbar_item] table.w2ui-button.over {
		background: none;
		border-color: #fff;
	}
	td[id^=tb_spreadsheet-toolbar_item]:focus table.w2ui-button, td[id^=tb_spreadsheet-toolbar_item]:active table.w2ui-button{
		background-color: #eaf5ff;
		outline: none;
	}
	td[id^=tb_spreadsheet-toolbar_item]:focus table.w2ui-button div.w2ui-icon, td[id^=tb_spreadsheet-toolbar_item]:active table.w2ui-button div.w2ui-icon{
		-webkit-filter: grayscale(100%) brightness(80%) sepia(100%) hue-rotate(-190deg) saturate(900%) contrast(0.8);
		filter: grayscale(100%) brightness(80%) sepia(100%) hue-rotate(-190deg) saturate(900%) contrast(0.8);
	}
	#toolbar-down table.w2ui-button:not(.checked) td.w2ui-tb-down > div {
		border-top: none !important;
		margin-top: 0 !important;
		border-bottom: 5px solid #8D99A7 !important;
	}
	#toolbar-down table.w2ui-button.checked td.w2ui-tb-down > div {
		border-bottom: none;
		border-top: 5px solid #8D99A7;
		margin-bottom: 5px !important;
	}
	#w2ui-overlay-editbar .menu{
		border-radius: 3px;
	}
	#w2ui-overlay-editbar:before{
		border: none !important;
	}
	#w2ui-overlay-editbar:after{
		border: none;
		border-top: 8px solid #000000;
		border-top-color: inherit;
		border-right: 8px solid transparent;
		border-left: 8px solid transparent;
		top: 100%;
		margin-top: -3px;
	}
	#toolbar-search #tb_searchbar_item_search *{
		width: 100% !important;
	}
	#toolbar-search input#search-input{
		font-size: 16px;
	}
	#toolbar-search #tb_searchbar_item_left, #tb_searchbar_right {
		display: none;
	}
	#toolbar-search #tb_searchbar_item_hidesearchbar{
		padding: 1px 8px !important;
	}
	#toolbar-search #tb_searchbar_item_search{
		width: 80%;
	}
	#toolbar-search #search-input-group > label{
		display: none;
	}
}
